package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.XxScheduleManagementRoleLimitMapper;
import com.ruoyi.system.domain.XxScheduleManagementRoleLimit;
import com.ruoyi.system.service.IXxScheduleManagementRoleLimitService;
import com.ruoyi.common.core.text.Convert;

/**
 * 雄信权限相关角色_权限Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-12
 */
@Service
public class XxScheduleManagementRoleLimitServiceImpl implements IXxScheduleManagementRoleLimitService 
{
    @Autowired
    private XxScheduleManagementRoleLimitMapper xxScheduleManagementRoleLimitMapper;

    /**
     * 查询雄信权限相关角色_权限
     * 
     * @param id 雄信权限相关角色_权限主键
     * @return 雄信权限相关角色_权限
     */
    @Override
    public XxScheduleManagementRoleLimit selectXxScheduleManagementRoleLimitById(Integer id)
    {
        return xxScheduleManagementRoleLimitMapper.selectXxScheduleManagementRoleLimitById(id);
    }

    /**
     * 查询雄信权限相关角色_权限列表
     * 
     * @param xxScheduleManagementRoleLimit 雄信权限相关角色_权限
     * @return 雄信权限相关角色_权限
     */
    @Override
    public List<XxScheduleManagementRoleLimit> selectXxScheduleManagementRoleLimitList(XxScheduleManagementRoleLimit xxScheduleManagementRoleLimit)
    {
        return xxScheduleManagementRoleLimitMapper.selectXxScheduleManagementRoleLimitList(xxScheduleManagementRoleLimit);
    }

    /**
     * 新增雄信权限相关角色_权限
     * 
     * @param xxScheduleManagementRoleLimit 雄信权限相关角色_权限
     * @return 结果
     */
    @Override
    public int insertXxScheduleManagementRoleLimit(XxScheduleManagementRoleLimit xxScheduleManagementRoleLimit)
    {
        xxScheduleManagementRoleLimit.setCreateTime(DateUtils.getNowDate());
        return xxScheduleManagementRoleLimitMapper.insertXxScheduleManagementRoleLimit(xxScheduleManagementRoleLimit);
    }

    /**
     * 修改雄信权限相关角色_权限
     * 
     * @param xxScheduleManagementRoleLimit 雄信权限相关角色_权限
     * @return 结果
     */
    @Override
    public int updateXxScheduleManagementRoleLimit(XxScheduleManagementRoleLimit xxScheduleManagementRoleLimit)
    {
        xxScheduleManagementRoleLimit.setUpdateTime(DateUtils.getNowDate());
        return xxScheduleManagementRoleLimitMapper.updateXxScheduleManagementRoleLimit(xxScheduleManagementRoleLimit);
    }

    /**
     * 批量删除雄信权限相关角色_权限
     * 
     * @param ids 需要删除的雄信权限相关角色_权限主键
     * @return 结果
     */
    @Override
    public int deleteXxScheduleManagementRoleLimitByIds(String ids)
    {
        return xxScheduleManagementRoleLimitMapper.deleteXxScheduleManagementRoleLimitByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除雄信权限相关角色_权限信息
     * 
     * @param id 雄信权限相关角色_权限主键
     * @return 结果
     */
    @Override
    public int deleteXxScheduleManagementRoleLimitById(Integer id)
    {
        return xxScheduleManagementRoleLimitMapper.deleteXxScheduleManagementRoleLimitById(id);
    }
}
